<me:UIMSTOCK x:Class="WPFExcelReport.TSTKM03"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL"  
                    xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"  
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                    x:Name ="TV"
                    Loaded="Window_Loaded"
     >
    <me:UIMSTOCK.Resources>
        <CollectionViewSource  x:Key="vwMaster"/>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:Divideby10000  x:Key="dw"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:PreisConverter  x:Key="PreisConverter"/>
        <ucd:PNumConverter  x:Key="pnum"/>
        <ucd:TextTrimmingConverter  x:Key="Trim"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
    </me:UIMSTOCK.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="1*"></RowDefinition>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="1*"></ColumnDefinition>
        </Grid.ColumnDefinitions>
        <WrapPanel Grid.Row="0" Grid.Column="0">
            <TextBlock Text="{Binding Source={Localization:Translate Word=同纱型色号明细}}"></TextBlock>
            <TextBlock Name="txtYQty" Width="100"></TextBlock>
        </WrapPanel>
        <DataGrid 
            Grid.Row="1"
            Grid.Column="0"
            CanUserReorderColumns="True" 
              CanUserResizeRows="True" 
              CanUserSortColumns="True"  
              AutoGenerateColumns="False" 
              EnableRowVirtualization="True"  
            HorizontalAlignment="Stretch" 
            VerticalAlignment="Stretch"
            IsSynchronizedWithCurrentItem="True" Visibility="Visible"
            ItemsSource="{Binding Source={StaticResource ResourceKey=vwMaster}}" 
             SelectedItem="{Binding Path=dwGPBST, Mode=TwoWay}"
             Margin="0,1,0,0" >
            <DataGrid.Columns>
                <DataGridTextColumn Binding="{Binding Path=LO}" Header="{Binding Source={Localization:TranslateExtension Word=LO}}"  Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=LB}" Header="{Binding Source={Localization:TranslateExtension Word=LB}}"  Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=FBPART}" Header="{Binding Source={Localization:TranslateExtension Word=纱型}}"  Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=SPPART}" Header="{Binding Source={Localization:TranslateExtension Word=纺批}}"  Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=ZWPART}" Header="{Binding Source={Localization:TranslateExtension Word=捻批}}"  Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=ART}" Header="{Binding Source={Localization:TranslateExtension Word=纱线}}"  Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=VAR}" Header="{Binding Source={Localization:TranslateExtension Word=变量}}"  Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=FARBE}" Header="{Binding Source={Localization:TranslateExtension Word=色号}}"  Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=STOCKQTY}" Header="{Binding Source={Localization:TranslateExtension Word=库存数}}"  Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=BS43}" Header="{Binding Source={Localization:TranslateExtension Word=手工入库}}"  Width="Auto" />
            </DataGrid.Columns>
        </DataGrid >

    </Grid>
   
</me:UIMSTOCK>
